<?php
/**
 * Created by PhpStorm.
 * User: happy
 * Date: 19/4/15
 * Time: 下午9:50
 */
class indexControl extends control{


    public  function  reload2(){
        $server=plugin('swoole')->get_server();
        $server->reload();
        $this->display('server_reload3');
    }

    public  function index(){
        $main='首页访问115';
        $this->display($main);
    }
    public  function  reload(){
        $main='首页访问reload';
        $this->display($main);
    }
    //display 不会终止程序向下执行;
    public  function  display($main){
        ini_set('display_errors', '1');
        //throw new Exception('ok');
        $this->response->end($main);
    }
}